//
//  select_View.m
//  Food
//
//  Created by dllo on 15/7/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "select_View.h"
#import "BaseHeader.h"
@implementation select_View

- (void)dealloc
{
    [_textFile release];
    [super dealloc];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.textFile = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 200.0 / 375 * ScreenWidth, 30)];
        self.textFile.center = CGPointMake(ScreenWidth / 2.0 , 15);
        self.textFile.placeholder = @"例如: 白菜  可乐鸡翅";
        self.textFile.layer.cornerRadius = 5.0;
        self.textFile.layer.borderWidth = 1.0;
        [self addSubview:self.textFile];
        
        self.button = [[UIButton alloc] initWithFrame:CGRectMake(self.textFile.frame.size.width + self.textFile.frame.origin.x, 0, 40, 30)];
        [self.button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [self.button setTitle:@"搜索" forState:UIControlStateNormal];
        [self addSubview:self.button];
    }
    return self;
}


@end
